package com.baymax.study.security.domain.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baymax.study.security.domain.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper extends BaseMapper<User> {
    /**
     * 插入用户角色关联
     *
     * @param userId 用户id
     * @param roleId 角色id
     */
    void insertUserRole(@Param("userId") long userId, @Param("roleId") long roleId);
}
